package edu.gatech.cs2340.teamrocket.model.pokemon.ailments;

import edu.gatech.cs2340.teamrocket.model.pokemon.Pokemon;

/**
 *
 * @author Joe Tacheron
 */
public class BadPoison extends Poison implements Ailment {

    private int damageCount;

    /**
     * Start by losing 1/16 health. Damage doubles each turn.
     *
     * @param t
     * @return
     */
    @Override
    public String affect(Pokemon t) {
        damageCount++;
        t.takeDamage(damageCount * DAMAGE);
        if(t.isFainted())
            return faintMessage(t);
        else
            return null;
    }

    @Override
    public String catchMessage(Pokemon t) {
        return t + " is badly poisoned!";
    }
}
